package com.punch.common.dto.user.teacher;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 教师信息表
 *
 * @author tanchangguo
 * @email 17607195327@163.com
 * @date 2020-07-21 19:10:02
 */
@Data
@ApiModel(value = "新增教师信息表")
public class TeacherDTO {

    @ApiModelProperty(value = "教师id")
    private Long teacherId;

    @ApiModelProperty(value = "姓名", required = true)
    @NotBlank(message = "姓名不能为空")
    private String name;

    @ApiModelProperty(value = "身份证号")
    private String idCard;

    @ApiModelProperty(value = "身份证照片")
    private String idCardUrl;

    @ApiModelProperty(value = "教师资格证照片")
    private String certificationUrl;

    @ApiModelProperty(value = "头像")
    private String headImgUrl;

    @ApiModelProperty(value = "手机号", required = true)
    @NotBlank(message = "手机号不能为空")
    @Size(max = 11, min = 11, message = "请输入正确的手机号")
    private String mobile;

    @ApiModelProperty(value = "性别 0：女  1：男", required = true)
    @NotNull(message = "性别不能为空")
    private Integer sex;

    @ApiModelProperty(value = "创建人名称")
    private String createName;

    @ApiModelProperty(value = "备注")
    private String description;

    /**
     * 0：禁用  1启用
     */
    @ApiModelProperty(value = "状态 0：禁用  1启用")
    private Integer enabled;

}
